# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
pkgname=beard
pkgver=0.3
pkgrel=0
pkgdesc="Simple hibernation daemon"
url="https://github.com/ahills/beard"
arch="noarch"
license="Public-Domain"
depends="pm-utils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ahills/beard/archive/v$pkgver.tar.gz"

builddir="$srcdir/$pkgname-$pkgver"

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/etc/init.d \
		 "$pkgdir"/etc/conf.d
	make PREFIX=/usr DESTDIR="$pkgdir" openrc install
}

sha512sums="4348bc06811e1dbdcb7d5e8b90c8f927f13cf66aa9536dfa4566388e8ddb5e75dd4681f7e8034125832784c9864015872a2708688d8a4051ac3b69a80334c09d  beard-0.3.tar.gz"
